import axios from '@/utils/axiosRequest'

// post
export const postDemo = (data) => {
  return axios.request({
    url: 'e-commerce-data-query/eCommerce/bar',
    method: 'post',
    data
  })
}

// get
export const getDemo = (date) => {
  return axios.request({
    url: 'e-commerce-data-query/eCommerce/bar',
    method: 'get',
    params: {
      date
    }
  })
}
